package kosta.model.member;

import java.util.HashMap;
import java.util.List;

public interface MemberDao {

	public MemberVO login(MemberVO mvo) throws Exception;

	public MemberVO idCheck(String id) throws Exception;

	public void update(MemberVO mvo) throws Exception;

	public void leaveMember(String id) throws Exception;

	public void register(MemberVO mvo) throws Exception;

	public List<TestVO> testList(int grade) throws Exception;

	public void gradeUp(MemberVO mvo) throws Exception;
	
	public void plusPoint(String id) throws Exception;

	public void minusPoint(String id) throws Exception;
	
	//관리자-박세미///////////////////////////////////////////////
		////Member 관리//////
		public List<MemberVO> getAllMember(String id) throws Exception;
		
		public List<MemberVO> findMemberByGrade(HashMap map) throws Exception;
		
		public void outMember(String id) throws Exception;
		
		////////Test 관리////////
		
		public List<TestVO> getAllTest(String question) throws Exception;
		
		public List<TestVO> gradeByTest(HashMap map) throws Exception;
		
		public void updateTest(TestVO tvo) throws Exception;
		
		public TestVO findByTest(int no) throws Exception;

		public void removeTest(int no) throws Exception;

		public void insertTest(TestVO tvo);
		
		//////rank
		
		public MemberVO myLankView(String id) throws Exception;

		public MemberLankVO findByLankID(String id)  throws Exception;

		public void insertMyLank(HashMap map) throws Exception;

		public void updateMyLank(HashMap map) throws Exception;
		
		public MemberLankVO findByLankIdCount(String id) throws Exception;

		public List<MemberLankVO> lankView() throws Exception;
		
		/////////////
}
